(function(){
	
	Ext.define('AppView.sys.organization.OrganizationGrid', {
		extend : 'AppView.base.BaseTreeGrid',
		selType: 'checkboxmodel',
		alias : 'widget.organizationgrid',
		treeGridStore : 'AppView.sys.organization.OrganizationStore',
		editWin:'AppView.sys.organization.OrganizationWin',
		moduleUrl:'/sys/organization',
		columns: [
			{
                xtype: 'treecolumn', //this is so we know which column will show the tree
                text: '名称',
                flex:1,
                sortable: true,
                dataIndex: 'text'
            },{
            	text: '编码', dataIndex: 'orgCode', flex: 1 },
            {
            	text: '层级', dataIndex: 'orgLevel', flex: 1 },
	        {
	        	text: '是否启用', dataIndex: 'isUse', flex: 1,
	        	renderer:function(value){
		        	if(value==1){
		        		return '是'
		        	}else{
		        		return '否'
		        	}
	        	}
	        }
		]
	});
})()